package cn.iocoder.yudao.module.ordering.controller.admin.food.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;

@Schema(description = "管理后台 - 订餐-餐品信息新增/修改 Request VO")
@Data
public class FoodSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "19803")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "餐品类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "餐品类型不能为空")
    private String type;

    @Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "28441")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;

    @Schema(description = "说明", example = "你说的对")
    private String description;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "图片不能为空")
    private String picture;

    @Schema(description = "状态，0下架，1在售", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态，0下架，1在售不能为空")
    private Integer status;

    @Schema(description = "可订餐开始日期")
    private LocalDate dateStart;

    @Schema(description = "可订餐结束日期")
    private LocalDate dateEnd;

}
